import axios from 'axios';

export const updateTask = async (updatedTask) => {
    try {
        const response = await axios.post('http://localhost:65520/tasks/update', updatedTask, {
            headers: {
                'Content-Type': 'application/json'
            }
        });
        return response;
    } catch (error) {
        return {
            status: 1001,
            msg: '数据库不存在'
        };
    }
}
